<template>
  <div class="box">
    <h1>404 Not Found</h1>
    <p>您所访问的页面丢失!!!</p>
    <el-button type="warning" @click="login()">返回首页</el-button>
    <div class="image">
      <img src="https://inews.gtimg.com/newsapp_bt/0/13993580121/1000" alt="" />
    </div>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";

const router = useRouter();
function login() {
  router.back();
}
</script>

<style scoped>
.box {
  width: 100%;
  height: 100%;
  text-align: center;
}
h1 {
  text-align: center;
  font-size: 70px;
}
p {
  text-align: center;
  font-size: 30px;
}
.image {
  text-align: center;
}
button {
  font-size: 20px;
}
</style>
